package myApp.classi;

import android.util.Log;
import java.io.PrintStream;
import java.net.URI;
import org.xmlrpc.android.XMLRPCClient;
import org.xmlrpc.android.XMLRPCException;

public class Connection
{
  private XMLRPCClient client = new XMLRPCClient(this.uri);
  private URI uri = URI.create("http://mbus.case.unibz.it:8080/Final/xmlrpc");

  public String buy(String paramString1, String paramString2)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.buy", paramString1, paramString2);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public String buy2(String paramString1, String paramString2)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.buy2", paramString1, paramString2);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public String getAllCat()
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getAllCat");
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC", localXMLRPCException.toString());
      }
    }
  }

  public String getBalance(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getBalance", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getCategory(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getCategory", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getMail(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getEmail", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getName(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getName", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getNick(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getNick", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getSurame(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getSurname", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getTicketOfUser(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getTicketOfUser", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String getValid(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getValidTicket", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public String getValid2(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getValidTicket2", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public String getValidTicket(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getValidTicket", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String history(String paramString)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.getTicketByUID", paramString);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public boolean login(String paramString1, String paramString2)
  {
    boolean bool1 = false;
    try
    {
      boolean bool2 = ((Boolean)this.client.call("Tool.login", paramString1, paramString2)).booleanValue();
      bool1 = bool2;
      return bool1;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public String reg(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5)
  {
    String str = "";
    try
    {
      str = (String)this.client.call("Tool.reg", paramString1, paramString2, paramString3, paramString4, paramString5);
      return str;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC ", localXMLRPCException.toString());
      }
    }
  }

  public void upCat(String paramString, int paramInt)
  {
    try
    {
      ((String)this.client.call("Tool.upCat", paramString, Integer.valueOf(paramInt)));
      return;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }

  public void upCat2(String paramString1, String paramString2)
  {
    try
    {
      ((String)this.client.call("Tool.upCat2", paramString1, paramString2));
      return;
    }
    catch (XMLRPCException localXMLRPCException)
    {
      while (true)
      {
        System.out.println(localXMLRPCException);
        Log.d("XMLRPC cacc", localXMLRPCException.toString());
      }
    }
  }
}

/* Location:           C:\Users\Spider22\Desktop\TesiMBUS\classes_dex2jar.jar
 * Qualified Name:     myApp.classi.Connection
 * JD-Core Version:    0.6.1
 */